﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DA;
using DTO;

namespace BO
{
    public class SanPhamController
    {
        public List<SanPhamData> getAllSanPham()
        {
            SanPhamDB db = new SanPhamDB();
            return db.getAllSanPham();
        }
        public bool ThemSanPham(SanPhamData data)
        {
            SanPhamDB db = new SanPhamDB();
            return db.ThemSanPham(data);
        }
    }
}
